<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2020/2/19
  Time: 18:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>验证登录</title>
</head>
<body>
<%
    String username = request.getParameter("username");
    String password = request.getParameter("password");
    if (username.equals("tony") && password.equals("123")) {
%>
<jsp:forward page="success.jsp">
    <jsp:param name="userid" value="1000"/>
</jsp:forward>

<%
} else {%>
<jsp:forward page="login.jsp"></jsp:forward>
<%
    }
%>

</body>
</html>
